#
# (C) Copyright 2021
# <tang-haifeng@foxmail.com> <pengren.mcu@qq.com>
#
# SPDX-License-Identifier:      GPL-2.0+
#
obj-y	+= common/platform.o common/pcie_fixup.o
ifdef CONFIG_MIPS
#obj-$(CONFIG_LOONGSON_BOOTELF) += common/bootls.o
obj-$(CONFIG_LOONGSON_BOOT_FIXUP) += common/bootparam_mips.o
endif
ifdef CONFIG_LOONGARCH
obj-$(CONFIG_LOONGSON_BOOT_FIXUP) += common/bootparam_la.o
obj-$(CONFIG_LOONGSON_BOOT_FIXUP) += common/loongson_efi_systab.o
endif

obj-$(CONFIG_TARGET_LS2K1000_COM) += ls2k1000_com/ls2k1000_com.o
obj-$(CONFIG_TARGET_LS2K1000_COM_C) += ls2k1000_com/ls2k1000_com.o
obj-$(CONFIG_TARGET_LS2K1000_COM_GB) += ls2k1000_com/ls2k1000_com.o

obj-$(CONFIG_TARGET_LS2K1000_COME) += ls2k1000_come/ls2k1000_come.o
obj-$(CONFIG_TARGET_LS2K1000_CORE_BOARD_PRE) += ls2k1000_core_board_pre/ls2k1000_core_board_pre.o

obj-$(CONFIG_TARGET_LS2K1000_IAP_M) += ls2k1000_art/ls2k1000_iap_m.o
obj-$(CONFIG_TARGET_LS2K1000_ICTRL) += ls2k1000_art/ls2k1000_ictrl.o
obj-$(CONFIG_TARGET_LS2K1000_ART_PAD) += ls2k1000_art/ls2k1000_art_pad.o

obj-$(CONFIG_TARGET_LS2K1000_IPC) += ls2k1000_ipc/ls2k1000_ipc.o
obj-$(CONFIG_TARGET_LS2K1000_IPC_MB_V2_0) += ls2k1000_ipc_mb_v2.0/ls2k1000_ipc_mb_v2.0.o

obj-$(CONFIG_TARGET_LS2K1000_JINLONG_MB_V1_0) += ls2k1000_jinlong_mb/ls2k1000_jinlong_mb_v1.1.o
obj-$(CONFIG_TARGET_LS2K1000_JINLONG_MB_V1_1) += ls2k1000_jinlong_mb/ls2k1000_jinlong_mb_v1.1.o
obj-$(CONFIG_TARGET_LS2K1000_JINLONG_MB_V1_2) += ls2k1000_jinlong_mb/ls2k1000_jinlong_mb_v1.2.o
obj-$(CONFIG_TARGET_LS2K1000_JINLONG_MB_V1_3) += ls2k1000_jinlong_mb/ls2k1000_jinlong_mb_v1.3.o

obj-$(CONFIG_TARGET_LS2K1000_LG_LOONGSON_AA0) += ls2k1000_lg/lg_loongson_aa0.o

obj-$(CONFIG_TARGET_LS2K1000_LXH_LSM510) += ls2k1000_lxh/lxh_lsm510.o

obj-$(CONFIG_TARGET_LS2K1000_NANWANG_GSE7122) += ls2k1000_jinlong_mb/ls2k1000_jinlong_mb_v1.1.o

obj-$(CONFIG_TARGET_LS2K1000_JL_LSGD2K10_BPC1) += ls2k1000_jl_lsgd2k10/ls2k1000_jl_lsgd2k10_bpc1.o
obj-$(CONFIG_TARGET_LS2K1000_PCM_2K01_MB) += ls2k1000_jl_lsgd2k10/ls2k1000_pcm_2k01_mb.o

ifeq ($(CONFIG_TARGET_LS2K1000_NTPSRV_V5_0), y)
obj-y += ls2k1000_ntpsrv/ls2k1000_ntpsrv_v5.0.o
hw-oled-y := ls2k1000_ntpsrv/ssd1322-oled
obj-y += $(hw-oled-y)/command.o
obj-y += $(hw-oled-y)/oled.o
obj-y += $(hw-oled-y)/spi.o
obj-y += $(hw-oled-y)/zk.o
endif

obj-$(CONFIG_TARGET_LS2K1000_PAI) += ls2k1000_pai/ls2k1000_pai.o
obj-$(CONFIG_TARGET_LS2K1000_PC_EVB) += ls2k1000_pc_evb/ls2k1000_pc_evb.o
obj-$(CONFIG_TARGET_LS2K1000_RUIHUA_V10) += ls2k1000_ruihua/ruihua_v10.o
obj-$(CONFIG_TARGET_LS2K1000_S200A08) += ls2k1000_s200a08/ls2k1000_s200a08.o
obj-$(CONFIG_TARGET_LS2K1000_SAKWAY_COME) += ls2k1000_sakway_come/ls2k1000_sakway_come.o
obj-$(CONFIG_TARGET_LS2K1000_VP63002) += ls2k1000_vp63002/ls2k1000_vp63002.o
obj-$(CONFIG_TARGET_LS2K1000_VPX6U_YZ) += ls2k1000_vpx6u_yz/ls2k1000_vpx6u_yz.o

obj-$(CONFIG_TARGET_LS2K1000_ZX5106) += ls2k1000_zx51xx/ls2k1000_zx5106.o
obj-$(CONFIG_TARGET_LS2K1000_ZX5108) += ls2k1000_zx51xx/ls2k1000_zx5108.o
obj-$(CONFIG_TARGET_LS2K1000_ZXP910) += ls2k1000_zx51xx/ls2k1000_zxp910.o

obj-$(CONFIG_TARGET_LS2K1000_H_RTU_MCU) += ls2k1000_h_rtu/ls2k1000_h_rtu_mcu.o



obj-$(CONFIG_TARGET_LS2K1000_JINLONG_MB_V1_1_LA) += ls2k1000_jinlong_mb/ls2k1000_jinlong_mb_v1.1.o
obj-$(CONFIG_TARGET_LS2K1000_JINLONG_MB_V1_3_LA) += ls2k1000_jinlong_mb/ls2k1000_jinlong_mb_v1.3.o

obj-$(CONFIG_TARGET_LS2K1000_JL_LSGD2K10_DP1_V10) += ls2k1000_jl/ls2k_jl_lsgd2k10_dp1_v1.0.o
